﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrTourCustomization.ascx.cs"
    Inherits="Controls_TourCustomization_ctrTourCustomization" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<script type="text/javascript">
    function SetUniqueRadioButton(current) {
        for (i = 0; i < document.forms[0].elements.length; i++) {
            elm = document.forms[0].elements[i]
            if (elm.type == 'radio') {
                elm.checked = false;
            }
        }
        current.checked = true;
    }

</script>
<div style ="padding:10px 10px 300px 10px; border: 1px solid #E8E8E8; margin-top:15px;">
    <div style="font-size:15px;">
        <uc1:Alert ID="MessAlert1" runat="server" />
    </div>
<div style="padding: 10px">
    <h2>
        <asp:Label ID="lblWelcome" runat="server"></asp:Label></h2>
    <p>
        <br />
        <asp:Literal ID="ltrContent" runat="server"></asp:Literal>
    </p>
</div>
<div style="padding: 10px">

    <div style="padding-bottom: 5px;">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblCustomerInforMation" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblContactFullname" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtContactFullname" runat="server" Width="400px" MaxLength="450" ValidationGroup="Input"></asp:TextBox>&nbsp;<span
            style="color: #ff3333">*</span>&nbsp;&nbsp;&nbsp;
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblAddress" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtContactAddress" runat="server" Width="400px" MaxLength="450"></asp:TextBox>
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblContactEmail" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtContactEmail" runat="server" Width="400px" MaxLength="450" ValidationGroup="Input"></asp:TextBox>&nbsp;<span
            style="color: #ff3333">*</span>&nbsp;&nbsp;&nbsp;
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblContactPhone" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtContactPhone" runat="server" Width="200px" MaxLength="450" ValidationGroup="Input"></asp:TextBox>&nbsp;<span
            style="color: #ff3333">*</span> &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label runat="server"
                ID="lblFax" CssClass="text" Width="80px"></asp:Label>
        <asp:TextBox ID="txtFax" runat="server" MaxLength="450" Width="193px"></asp:TextBox>
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblCity" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtCity" runat="server" MaxLength="450" Width="200px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat="server" ID="lblNationality" CssClass="text" Width="80px"></asp:Label>
        <asp:DropDownList runat="server" ID="ddlNationality" Width="200px">
        </asp:DropDownList>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblTripInfo" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblExpectedDepDate" CssClass="text" Width="100px" Height="19px"></asp:Label>
        <asp:DropDownList ID="ddlDay1" Width="50px" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="ddlMonth1" Width="50px" runat="server">
        </asp:DropDownList>
        <asp:DropDownList ID="ddlYear1" Width="70px" runat="server">
        </asp:DropDownList>
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblAdult" CssClass="text" Width="100px"></asp:Label>
        <asp:TextBox ID="txtAdult" runat="server" Width="50px" MaxLength="450" ValidationGroup="Input"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat="server" ID="lblChild" CssClass="text" Width="80px"></asp:Label>
        <asp:TextBox ID="txtChild" runat="server" MaxLength="450" ValidationGroup="Input" Width="50px"></asp:TextBox>
    </div>
    <div style="padding-bottom: 8px">
        <asp:Label runat="server" ID="lblDuration" CssClass="text" Width="100px"></asp:Label>
        <asp:DropDownList runat="server" ID="ddlDuration" Width="200px">
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat="server" ID="lblPortOfArrival" CssClass="text" Width="100px"></asp:Label>
        <asp:DropDownList runat="server" ID="ddlPortOfArr" Width="180px">
        </asp:DropDownList>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblWhereToVisit" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
   <div style="padding-bottom: 5px; width: 670px; float: left">
        <%--<asp:Repeater ID="rptCountry" runat="server" OnItemDataBound="rptCountry_ItemDataBound">
            <ItemTemplate>--%>
                <%--<div style="padding-bottom: 5px; width: 670px; float: left">--%>
                <asp:Label ID="lblCountry" runat="server" Font-Bold="true" ForeColor="#003399"></asp:Label>


                    <div style="padding-top: 10px; width: 670px; float: left"></div>
                    <asp:Repeater ID="rptRegion" runat="server" OnItemDataBound="rptRegion_ItemDataBoundVN">
                        <ItemTemplate>
                            <div style="padding-top: 8px; width: 200px; float: left">
                                <asp:Label ID="lblRegion" runat="server" Font-Bold="true" ForeColor="#4F81BD"></asp:Label>
                                <div style="padding-top: 5px; float: left; width:200px">
                                    <asp:Repeater ID="rptCity" runat="server" OnItemDataBound="rptCity_ItemDataBoundVN">
                                        <ItemTemplate>
                                            <div style="float: left; padding: 3px">
                                                <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="200px" />
                                                <asp:Label ID="lblID" runat="server" Visible="false" /></div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </div>

                        </div>
                    </ItemTemplate>
                </asp:Repeater>

<%--
                    </div>--%>
            <%--</ItemTemplate>
        </asp:Repeater>--%>
        <asp:Repeater ID="rptCountry" runat="server" OnItemDataBound="rptCountry_ItemDataBound">
            <ItemTemplate>
                <div style="padding-bottom: 5px; width: 670px; float: left">
                    <asp:Label ID="lblCountry" runat="server" Font-Bold="true" ForeColor="#003399"></asp:Label></div>
                <div style="padding-bottom: 10px; float: left; width: 670px">
                    <asp:Repeater ID="rptCity" runat="server" OnItemDataBound="rptCity_ItemDataBound">
                        <ItemTemplate>
                            <div style="float: left; padding: 3px">
                                <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="100px" />
                                <asp:Label ID="lblID" runat="server" Visible="false" /></div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
  
    <div style="float:left; width:670px ">
        <asp:Label runat="server" ID="lblVisitationSuggestion" CssClass="text" Width="60px"
            Height="19px"></asp:Label>
        <asp:TextBox ID="txtVisitationSuggestion" runat="server" Width="200px" MaxLength="450"></asp:TextBox>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px; float:left ; width:670px ">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblTransport" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted" style ="float:left; width:670px ">
        &nbsp;</div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Repeater ID="rptTransport" runat="server" OnItemDataBound="rptTransport_ItemDataBound">
            <ItemTemplate>
                <div style="float: left; padding: 3px">
                    <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="100px" />
                    <asp:Label ID="lblID" runat="server" Visible="false" /></div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px;">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblStyleInterest" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Repeater ID="rptTravelStyle" runat="server" OnItemDataBound="rptTravelStyle_ItemDataBound">
            <ItemTemplate>
                <div style="float: left; padding: 3px">
                    <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="115px" /><asp:Label
                        ID="lblID" runat="server" Visible="false" /></div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div>
        <asp:Label runat="server" ID="lblTourCategorySuggestion" CssClass="text" Width="60px"
            Height="19px"></asp:Label>
        <asp:TextBox ID="txtTourCategorySuggestion" runat="server" MaxLength="450" Width="200px"></asp:TextBox>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblTourGuide" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Repeater ID="rptGauide" runat="server" OnItemDataBound="rptGauide_ItemDataBound">
            <ItemTemplate>
                <div style="float: left; padding: 3px">
                    <asp:RadioButton ID="rdo" runat="server" GroupName="rdoGuide" ForeColor="black" Width="100px" onclick="SetUniqueRadioButton(this)"/>
                    <asp:Label ID="lblID" runat="server" Visible="false" /></div>
            </ItemTemplate>
        </asp:Repeater>

    </div>
    <div style="width: 670px; float: left; padding-bottom: 20px">
        <asp:Label runat="server" ID="lblGuideSuggestion" CssClass="text" Width="80px" Height="19px"></asp:Label>
        <asp:TextBox ID="txtGuideSuggestion" runat="server" Width="200px" MaxLength="450"></asp:TextBox>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblAccommodation" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Label ID="lblCustomizationHotelOption" Width="130px" runat="server" Font-Bold="true"
            CssClass="text"></asp:Label>
        <asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
            <ItemTemplate>
                <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="100px" />
                <asp:Label ID="lblID" runat="server" Visible="false" />
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div style="width: 670px; float: left; padding-bottom: 20px">
        <asp:Label ID="lblCustomizationRoomType" Width="130px" runat="server" Font-Bold="true"
            CssClass="text"></asp:Label>
        <asp:Repeater ID="Repeater4" runat="server" OnItemDataBound="Repeater4_ItemDataBound">
            <ItemTemplate>
                <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="100px" />
                <asp:Label ID="lblID" runat="server" Visible="false" />
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div style="padding-bottom: 5px; padding-top: 15px">
        <h3>
            <img src="images/check.gif" />&nbsp;<asp:Label ID="lblMeal" runat="server"></asp:Label></h3>
    </div>
    <div class="spacer-solid-dotted">
        &nbsp;</div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Repeater ID="Repeater3" runat="server" OnItemDataBound="Repeater3_ItemDataBound">
            <ItemTemplate>
                <div style="float: left; padding: 3px">
                    <asp:CheckBox ID="chk" runat="server" ForeColor="black" Width="100px" />
                    <asp:Label ID="lblID" runat="server" Visible="false" /></div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div style="width: 670px; float: left; padding-bottom: 10px">
        <asp:Label runat="server" ID="lblOtherRequest" CssClass="text" Font-Bold="true" Width="100px"
            Height="19px"></asp:Label>
        <br />
        <asp:TextBox ID="txtOtherRequest" runat="server" Width="640px" Height="100px" MaxLength="250"
            TextMode="MultiLine"></asp:TextBox>
    </div>
    <div style="width: 670px; float: left; padding-bottom: 20px">
        <asp:Label runat="server" ID="lblPayment" CssClass="text" Width="80px"></asp:Label>
        <asp:DropDownList runat="server" ID="ddlPayment" Width="120px">
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <asp:Label ID="lblEverHeard" runat="server" ForeColor="Black" Width="200px"/>
        <asp:DropDownList runat="server" ID="ddlWhere" Width="120px">
        </asp:DropDownList>
    </div>
  
    <div style="width: 670px; float: left; padding-bottom: 20px">
        <asp:ImageButton ID="btnSave" runat="server" OnClick="btnSave_Click" 
            ValidationGroup="Input" 
            ImageUrl="~/Images/Layout/submitform-input-button-bg.png" />&nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="btnCancel" runat="server" OnClick="btnCancel_Click" 
            ImageUrl="~/Images/Layout/reset-input-button-bg.png" />
    </div>
      </div>

      </div>
<asp:RequiredFieldValidator ID="rfvContactFullname" runat="server" SetFocusOnError="true"
    ControlToValidate="txtContactFullname" Display="None" ValidationGroup="Input"
    Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvContactEmail" runat="server" SetFocusOnError="true"
    ControlToValidate="txtContactEmail" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvContactPhone" runat="server" SetFocusOnError="true"
    ControlToValidate="txtContactPhone" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
    ControlToValidate="txtContactEmail" Display="None" ValidationGroup="Input" SetFocusOnError="True"
    Text="*">
</asp:RegularExpressionValidator>

<asp:RegularExpressionValidator ID="revAdult" runat="server" ControlToValidate="txtAdult"
    Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="revChildren" runat="server" ControlToValidate="txtChild"
    Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>

    
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
    ValidationGroup="Input" ShowSummary="False" />